package com.brush.system.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.brush.system.domain.SysPost;
import com.brush.system.domain.req.syspost.SysPostQueryReq;
import com.brush.system.domain.resp.syspostresp.SysPostResp;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @author 18494
 * @description 针对表【sys_post(岗位信息表)】的数据库操作Mapper
 * @createDate 2024-08-19 10:28:03
 * @Entity com.brush.system.domain.SysPost
 */
public interface SysPostMapper extends BaseMapper<SysPost> {

    List<SysPostResp> paginationQuery(@Param("req") SysPostQueryReq req);


    /***
     * 根据用户ID获取岗位选择框列表
     * @param userId
     * @return
     */
    List<Long> selectPostListByUserId(Long userId);
}




